﻿$(document).ready(function () {
    //Show sticky help
    //$.showHelpMessage('New user registration is not open to the public at this stage|Please drop an email to <a href="mailto:hugh.nadia@gmail.com">hugh.nadia@gmail.com</a> if you have any suggestion/request|Or "Take a Tour" now!');
    $('input[id*=btnWeddingHN]').click(function (e) {
        e.preventDefault();
        window.open('https://skydrive.live.com/?cid=654b66338e3d3a10&id=654B66338E3D3A10!126');
    });
    $('input[id*=btnWeddingHCM1]').click(function (e) {
        e.preventDefault();
        window.open('https://skydrive.live.com/?cid=654b66338e3d3a10&id=654B66338E3D3A10!370');
    });
    $('input[id*=btnWeddingHCM2]').click(function (e) {
        window.open('https://skydrive.live.com/?cid=654b66338e3d3a10&id=654B66338E3D3A10!514');
        e.preventDefault();
    });
    $('input[id*=btnPoem]').click(function (e) {
        e.preventDefault();
        $('#poem_box').dialog({
            modal: true,
            title: 'Mừng cưới Xuân Hiếu & Phương Nga',
            resizable: false,
            width: '530'
        });
    });
});

//More action link click
function lnkMoreAction_OnClick(s) {
    if (s.text.trim() == 'More') {
        s.text = 'Less';
    }
    else {
        s.text = 'More';
    }

    //Show/hide login box
    $('div[id*=login_box]').toggle();
}

//